package com.azier.kapacitor.script.node.nodebind.qlnodebind;

import com.azier.kapacitor.script.node.Node;
import com.azier.kapacitor.script.node.qlnode.MedianNode;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public interface MedianNodeBind extends Node {
    default MedianNode median(String field){
        MedianNode nextNode = new MedianNode(field);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}